const KoaRouter = require("@koa/router");
const TagController = require("../controller/tag.controller.js");
const verifyTag = require("../middleware/verifyTag.js");
const verifyToken = require("../middleware/verifyToken.js");

const userRouter = new KoaRouter({ prefix: "/tag" });

userRouter.post("/create", verifyToken, verifyTag, TagController.create);
userRouter.post("/delete", verifyToken, TagController.delete);
userRouter.post("/page", verifyToken, TagController.page);
userRouter.post("/update", verifyToken, TagController.update);
userRouter.get("/select", verifyToken, TagController.select);

module.exports = userRouter;
